package com.play.ballen.home.entity


data class BottleDetail(
    val anonymous: Boolean,
    val anonymous_nickname:String,
    val avatar: String,
    val city: String,
    val comment_count: Int,
    val comments: List<Comment>,
    val content: String,
    val id: Int,
    val image: String,
    val image_list: List<String>,
    val is_like: Boolean,
    val like_count: Int,
    val nickname: String,
    val phone: String,
    val position: PositionXX,
    val post_time: String,
    val user_id: Int,
    val is_follow:Boolean
)

data class Comment(
    val avatar_url: String = "",
    val city: String = "",
    val comment: MutableList<CommentX> = mutableListOf(),
    val content: String = "",
    val id: Int = 0,
    var is_like: Boolean = false,
    var like_count: Int = 0,
    val moment_id: Int = 0,
    val nickname: String = "",
    val parent_id: Int = 0,
    val phone: String = "",
    val position: PositionXX = PositionXX(0.00,0.00),
    val post_time: String = "",
    val target_id: Int = 0,
    val target_nickname: String = "",
    val target_phone: String = "",
    val target_user_id: Int = 0,
    val user_id: Int = 0,
    val  can_delete:Boolean = true

)

data class PositionXX(
    val latitude: Double,
    val longitude: Double
)

data class CommentX(
    val avatar_url: String,
    val city: String,
    val content: String,
    val id: Int,
    var is_like: Boolean,
    var like_count: Int,
    val moment_id: Int,
    val nickname: String,
    val parent_id: Int,
    val phone: String,
    val position: PositionXX,
    val post_time: String,
    val target_id: Int,
    val target_nickname: String,
    val target_phone: String,
    val target_user_id: Int,
    val user_id: Int,
    val can_delete:Boolean
)